#ifndef __HEALTHMANAGE__
#define __HEALTHMANAGE__

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>

#include "../commander/commander.h"

#define MMC_BAD_BIT       ((uint8_t)0x01)
#define FCC_BAD_BIT       ((uint8_t)0x02)
#define RESERVED1_BAD_BIT ((uint8_t)0x04)
#define ULTRA_BAD_BIT     ((uint8_t)0x08)
#define CAPTURE_BAD_BIT   ((uint8_t)0x10)
#define RESERVED2_BAD_BIT ((uint8_t)0x20)
#define LOCALNET_BAD_BIT  ((uint8_t)0x40)
#define WAN_BAD_BIT       ((uint8_t)0x80)

class xy_network_c;

class xy_health_c
{
public:
	xy_health_c(xy_network_c &_xy_network);
	~xy_health_c();

	void report_health_status(uint8_t _health_status);
	
	uint8_t health_status;
	xy_network_c &xy_network;
};
#endif

